package com.sailer.practice.model;

import java.util.Comparator;

public class CityByPopulation implements Comparator<City> {


    @Override
    public int compare(City o1, City o2) {
        return Integer.compare(o1.getPopulation(),o2.getPopulation());
    }
}
